package main

import (
	"goblog/core"
	"goblog/global"
	"goblog/initialize"
)

func main() {

	//1.初始化mysql
	initialize.Mysql()
	//2.注册表
	//initialize.DBTable()

	//4.关闭mysql连接
	defer global.GLOBAL_DB.Close()


	//启动服务
	core.EunServer()
	////3.执行我们的框架
	//r := gin.Default()
	//
	//r.GET("/admin", func(context *gin.Context) {
	//	context.JSON(200,gin.H{
	//		"msg":"hello world",
	//	})
	//})
	//r.Run("0.0.0.0:8088")
}

